﻿using Neural;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Collections;
using System.Collections.Generic;

namespace NNTest
{
    
    
    /// <summary>
    ///This is a test class for ExampleSetTest and is intended
    ///to contain all ExampleSetTest Unit Tests
    ///</summary>
    [TestClass()]
    public class ExampleSetTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for Item
        ///</summary>
        [TestMethod()]
        public void ItemTest()
        {
            ExampleSet target = new ExampleSet(); // TODO: Initialize to an appropriate value
            int index = 0; // TODO: Initialize to an appropriate value
            Example actual;
            actual = target[index];
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Count
        ///</summary>
        [TestMethod()]
        public void CountTest()
        {
            ExampleSet target = new ExampleSet(); // TODO: Initialize to an appropriate value
            int actual;
            actual = target.Count;
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Shuffle
        ///</summary>
        [TestMethod()]
        public void ShuffleTest()
        {
            ExampleSet target = new ExampleSet(); // TODO: Initialize to an appropriate value
            ExampleSet expected = null; // TODO: Initialize to an appropriate value
            ExampleSet actual;
            actual = target.Shuffle();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for NextExample
        ///</summary>
        [TestMethod()]
        public void NextExampleTest()
        {
            ExampleSet target = new ExampleSet(); // TODO: Initialize to an appropriate value
            Example expected = null; // TODO: Initialize to an appropriate value
            Example actual;
            actual = target.NextExample();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for MakeExamples
        ///</summary>
        [TestMethod()]
        public void MakeExamplesTest()
        {
            List<Dictionary<string, double>> data = null; // TODO: Initialize to an appropriate value
            List<string> inputs = null; // TODO: Initialize to an appropriate value
            List<string> outputs = null; // TODO: Initialize to an appropriate value
            ExampleSet expected = null; // TODO: Initialize to an appropriate value
            ExampleSet actual;
            actual = ExampleSet.MakeExamples(data, inputs, outputs);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetEnumerator
        ///</summary>
        [TestMethod()]
        public void GetEnumeratorTest()
        {
            ExampleSet target = new ExampleSet(); // TODO: Initialize to an appropriate value
            IEnumerator expected = null; // TODO: Initialize to an appropriate value
            IEnumerator actual;
            actual = target.GetEnumerator();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for DivideRandom
        ///</summary>
        [TestMethod()]
        public void DivideRandomTest1()
        {
            ExampleSet target = new ExampleSet(); // TODO: Initialize to an appropriate value
            int[] sizes = null; // TODO: Initialize to an appropriate value
            ExampleSet[] expected = null; // TODO: Initialize to an appropriate value
            ExampleSet[] actual;
            actual = target.DivideRandom(sizes);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for DivideRandom
        ///</summary>
        [TestMethod()]
        public void DivideRandomTest()
        {
            ExampleSet target = new ExampleSet(); // TODO: Initialize to an appropriate value
            double[] pctSizes = null; // TODO: Initialize to an appropriate value
            ExampleSet[] expected = null; // TODO: Initialize to an appropriate value
            ExampleSet[] actual;
            actual = target.DivideRandom(pctSizes);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for DivideLinear
        ///</summary>
        [TestMethod()]
        public void DivideLinearTest1()
        {
            ExampleSet target = new ExampleSet(); // TODO: Initialize to an appropriate value
            double[] pctSizes = null; // TODO: Initialize to an appropriate value
            ExampleSet[] expected = null; // TODO: Initialize to an appropriate value
            ExampleSet[] actual;
            actual = target.DivideLinear(pctSizes);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for DivideLinear
        ///</summary>
        [TestMethod()]
        public void DivideLinearTest()
        {
            ExampleSet target = new ExampleSet(); // TODO: Initialize to an appropriate value
            int[] sizes = null; // TODO: Initialize to an appropriate value
            ExampleSet[] expected = null; // TODO: Initialize to an appropriate value
            ExampleSet[] actual;
            actual = target.DivideLinear(sizes);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for CheckSizeLimits
        ///</summary>
        [TestMethod()]
        [DeploymentItem("Neural.NET.dll")]
        public void CheckSizeLimitsTest1()
        {
            ExampleSet_Accessor target = new ExampleSet_Accessor(); // TODO: Initialize to an appropriate value
            double[] pct = null; // TODO: Initialize to an appropriate value
            target.CheckSizeLimits(pct);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for CheckSizeLimits
        ///</summary>
        [TestMethod()]
        [DeploymentItem("Neural.NET.dll")]
        public void CheckSizeLimitsTest()
        {
            ExampleSet_Accessor target = new ExampleSet_Accessor(); // TODO: Initialize to an appropriate value
            int[] sizes = null; // TODO: Initialize to an appropriate value
            target.CheckSizeLimits(sizes);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for AddExample
        ///</summary>
        [TestMethod()]
        public void AddExampleTest()
        {
            ExampleSet target = new ExampleSet(); // TODO: Initialize to an appropriate value
            Example example = new Example(); // TODO: Initialize to an appropriate value
            target.AddExample(example);
            Assert.AreEqual(1, target.Count);
        }

        /// <summary>
        ///A test for ExampleSet Constructor
        ///</summary>
        [TestMethod()]
        public void ExampleSetConstructorTest()
        {
            ExampleSet target = new ExampleSet();
            Assert.Inconclusive("TODO: Implement code to verify target");
        }
    }
}
